package org.pangu.test.publish;

import java.util.EventObject;

/**
 * @author zhangyj
 * @date 2022/7/19 22:51
 */
public class LoginEvent extends EventObject {
    private LoginInfo login;

    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public LoginEvent(Object source) {
        super(source);
    }

    public LoginEvent(Object source, LoginInfo login) {
        super(source);
        this.login = login;
    }

    public Object getLogin() {
        return login;
    }

    public void setLogin(LoginInfo login) {
        this.login = login;
    }
}
